\documentclass{article}

\usepackage{pgfplots}

\pgfplotsset{compat=1.13}

\begin{document}


\foreach \Q in {none,reverse x seq,reverse y seq,reverse xy seq}{%
\begin{tikzpicture}
\begin{axis}[y dir=reverse,view={0}{90},title={z buffer=\Q},z buffer=\Q,shader=flat corner]
\addplot3[surf,point meta=explicit] coordinates {
(0,0,0) [0] (1,0,0) [1] (2,0,0) [2] (3,0,0) [3]

(0,1,0) [4] (1,1,0) [5] (2,1,0) [] (3,1,0) [7]

(0,2,0) [8] (1,2,0) [9] (2,2,0) [10] (3,2,0) [11]
};
\end{axis}
\end{tikzpicture}
}%


\foreach \Q in {none,reverse x seq,reverse y seq,reverse xy seq}{%
\begin{tikzpicture}
\begin{axis}[y dir=reverse,view={0}{90},title={z buffer=\Q},z buffer=\Q,shader=flat corner]
\addplot3[surf,point meta=explicit,mesh/ordering=y varies] coordinates {
(0,0,0) [0] (0,1,0) [4] (0,2,0) [8]

(1,0,0) [1] (1,1,0) [5] (1,2,0) [9]

(2,0,0) [2] (2,1,0) [] (2,2,0) [10]

(3,0,0) [3] (3,1,0) [7] (3,2,0) [11]

};
\end{axis}
\end{tikzpicture}
}%

\end{document}

